package il.technion.cs236369.interfaces;

import java.util.Map;

/**
 * Represents an entry in the DB cache of an HTTP response
 * 
 * @author Gal Lalouche 036933489 sgallal@t2
 * 
 */
public interface ICacheEntry {
	/**
	 * Gets the URL
	 * 
	 * @return The URL
	 */
	String getURL();

	/**
	 * Gets the requests' headers
	 * 
	 * @return A map of headerName -> headerValue
	 */
	Map<String, String> getHeaders();

	/**
	 * Gets the page's body
	 * 
	 * @return The page's body
	 */
	byte[] getBody();
}
